function startRequest(param)
{
  url = "http://localhost/dane.php?dir=" + param;
  url = encodeURI(url);
  startGETRequest(url, onComplete, onEnd);
}

function onComplete(text, xml)
{
  if(text.substr(0, 5) == 'error'){
    alert("Nie mona wywietla zawartoci tego katalogu.");
  }
  else{
    div = document.getElementById('dataDiv');
    div.innerHTML = text;
  }
}

function onEnd()
{
}
